package com.example.yls.demoa;

import android.os.Binder;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by yls on 2018/12/17.
 */

public class MyBinder extends Binder {
    public int add(int a,int b){
        return a+b;
    }

    public String getTime(){
        Date date=new Date();
        SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        return format.format(date);
    }
}
